package jltx.fragmentpageframework.zihu.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import jltx.fragmentpageframework.R;

/**
 * @author jltxseo
 *         Created by junlintianxia on 2017/06/26.
 */

public class IndexFragment extends BaseZhiHuTabFragment{

    public static IndexFragment newInstance(){
        IndexFragment indexFragment = new IndexFragment();
        return indexFragment;
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
    }

    @Override
    public void onLazyInitView(@Nullable Bundle savedInstanceState) {
        super.onLazyInitView(savedInstanceState);
        if(savedInstanceState == null){
            loadRootFragment(R.id.zhihu_content,MainIndexFragment.newInstance());
        }
    }
}
